﻿
namespace ZHDJ.MobileInterface
{
    public sealed class CryptoHelper
    {
        public static string Encrypt(string plainString, string cryptograhpyKey)
        {
            return TripleDES.Encrypt(plainString, cryptograhpyKey, ServiceSettings.CryptograhpyIV);
        }

        public static string Decrypt(string encryptedString, string cryptograhpyKey)
        {
            return TripleDES.Decrypt(encryptedString, cryptograhpyKey, ServiceSettings.CryptograhpyIV);
        }
    }
}